import request from './request'

export const listAll = (data) => {
  return request({
    url: '/brand/listAll',
    method: 'POST',
    data
  })
}

export const list = (data) => {
  return request({
    url: '/brand/list',
    method: 'POST',
    data
  })
}

export const brandList = (data) => {
  return request({
    url: '/brand/brandList',
    method: 'POST',
    data
  })
}

export const save = (data) => {
  return request({
    url: '/brand/save',
    method: 'POST',
    data
  })
}

export const modify = (data) => {
  return request({
    url: '/brand/modify',
    method: 'POST',
    data
  })
}

export const remove = (id) => {
  return request({
    url: '/brand/remove?id=' + id,
    method: 'GET'
  })
}
